Skip to contentSkip to conversation

R9285 4.17-wip locks/vmfaults since drm/amdgpu: revert "drm/amdgpu: use AMDGPU_GEM_CREATE_VRAM_CLEARED for VM PD/PTs" v2

Bug 104919 [email protected] 1 participant 8 messages Feb 2, 2018 – Feb 8, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=104919

Bug ID: 104919
Summary: R9285 4.17-wip locks/vmfaults since drm/amdgpu: revert
"drm/amdgpu: use AMDGPU_GEM_CREATE_VRAM_CLEARED for VM PD/PTs" v2
Product: DRI
Version: DRI git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

last couple of agd5f 4.17-wips have locked with unreal tournament alpha for me on R9 285.

Seems to be

first bad commit: [d712b817ceb9311cffad47867da26311c06a812b] drm/amdgpu: revert "drm/amdgpu: use AMDGPU_GEM_CREATE_VRAM_CLEARED for VM PD/PTs" v2

Though it takes a while to lock, and sometimes only after restarting the game, so slight chance of a false good.

This game requests slightly more than the 2 gig vram I have - maybe relevant if others have more and can't reproduce.

Attached examples of logging retrieved after a lock. Usually sysrq will do, once needed hard reset, first chunk got before a lock by quickly quitting the game after seeing some new artifacts.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=104919

--- Comment #1 from Andy Furniss <[email protected]> --- Created attachment 137138
--> https://bugs.freedesktop.org/attachment.cgi?id=137138&action=edit
error logging from corruption/locks

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=104919

--- Comment #2 from Christian König <[email protected]> --- At least I now knew that the PASID handling is working fine.

Does it work if you disable the new clear method? E.g. just add a "return 0;" to the beginning of amdgpu_vm_clear_bo().

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=104919

--- Comment #3 from Andy Furniss <[email protected]> --- (In reply to Christian König from comment #2)

Quoted 4 lines

At least I now knew that the PASID handling is working fine.

Does it work if you disable the new clear method? E.g. just add a "return 0;" to the beginning of amdgpu_vm_clear_bo().

Seems good with that.
Just a quick test as got to be AFK, will try more later.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=104919

--- Comment #4 from Andy Furniss <[email protected]> --- (In reply to Andy Furniss from comment #3)

Quoted 2 lines

Seems good with that.
Just a quick test as got to be AFK, will try more later.

Still good after a bit more time.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=104919

Christian König <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |ckoenig.leichtzumerken@gmai
                   |                            |l.com

--- Comment #5 from Christian König <[email protected]> --- Created attachment 137166
--> https://bugs.freedesktop.org/attachment.cgi?id=137166&action=edit
Possible fix

One thing I've found while looking at the code.

Please test if that fixed the issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=104919

Andy Furniss <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #7 from Andy Furniss <[email protected]> --- Fix is in affected kernels.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel